package a_reflect;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package a_reflect
 * @date 2024/4/14 下午4:08
 */
public class Test02 {
    public static void main(String[] args) throws IOException {
        Person person = new Person();
        Properties properties = new Properties();
        FileInputStream fileOutputStream = new FileInputStream("D:\\JavaProject\\JavaStudy\\Finally Module\\proper.properties");
        properties.load(fileOutputStream);
        String className = properties.getProperty("className");
        System.out.println(className);
        try {
            Class<?> aClass = Class.forName(className);
            System.out.println(aClass);
        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        }
    }
}
